package com.dtw.ditouwang.beans;

import java.util.List;

public class MyMedalBean {

    /**
     * flag : Success
     * msg : 查询成功!
     * result : true
     * data : [{"type":1,"type_name":"健走","data":[{"id":1,"medal_name":"1w","mileage":1,"img":"/public/uploads/medal/20181220/840edd4a144ad17732621944aac90bb3.jpg"}]},{"type":2,"type_name":"跑步","data":[{"id":2,"medal_name":"1w","mileage":1,"img":"/public/uploads/medal/20181220/07e1eb20457f93c2b158dd013fed54bd.jpg"}]},{"type":3,"type_name":"挑战-健走","data":[{"id":3,"medal_name":"1w","mileage":1,"img":"/public/uploads/medal/20181220/70881d4be8867ffe17d04615c98c2b16.jpg"}]},{"type":4,"type_name":"挑战-跑步","data":[{"id":4,"medal_name":"1w","mileage":1,"img":"/public/uploads/medal/20181220/70881d4be8867ffe17d04615c98c2b16.jpg"}]}]
     */

    private String flag;
    private String msg;
    private boolean result;
    private List<DataBeanX> data;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public List<DataBeanX> getData() {
        return data;
    }

    public void setData(List<DataBeanX> data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * type : 1
         * type_name : 健走
         * data : [{"id":1,"medal_name":"1w","mileage":1,"img":"/public/uploads/medal/20181220/840edd4a144ad17732621944aac90bb3.jpg"}]
         */

        private int type;
        private String type_name;
        private List<DataBean> data;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getType_name() {
            return type_name;
        }

        public void setType_name(String type_name) {
            this.type_name = type_name;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 1
             * medal_name : 1w
             * mileage : 1
             * img : /public/uploads/medal/20181220/840edd4a144ad17732621944aac90bb3.jpg
             */

            private int id;
            private String medal_name;
            private float mileage;
            private String img;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getMedal_name() {
                return medal_name;
            }

            public void setMedal_name(String medal_name) {
                this.medal_name = medal_name;
            }

            public float getMileage() {
                return mileage;
            }

            public void setMileage(float mileage) {
                this.mileage = mileage;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }
        }
    }
}
